<?php
namespace app\api\command;

use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;
use app\common\business\Order as orderBusi;
class Order extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('order')
            ->setDescription('the order command');        
    }

    protected function execute(Input $input, Output $output)
    {
    	
    	$orderBusi = new orderBusi();
    	while (true) {
    		//$orderBusi->checkOrderStatus();
            //$flag = $orderBusi->updateOrderStatus();
            $orderBusi->getSmsInfo(); 
    		sleep(2);
            //$output->writeln('hello'.var_dump($flag));
    	}
  
    	// 指令输出
    	$output->writeln('order-123');
    }
}
